package seentao.stdev.mobile.log.vo;

import javax.persistence.*;

import lombok.Data;

import lombok.RequiredArgsConstructor;
import seentao.stdev.mobile.base.vo.BaseVO;

@Data
@Entity
@Table(name="sys_auditlog")
public class AuditLogVO extends BaseVO {

	private static final long serialVersionUID = 1L;

	/** 操作目标实体 */
	@Column(name = "entity", length = 32)
	private String entity;

	/** 操作目标记录 */
	@Column(name = "record", length = 36)
	private String record;

	/** 操作动作 */
	@Column(name = "act", length = 6)
	private String operateAct;

	/**
	 * 操作数据：
	 * 如果act为insert：插入数据
	 * 如果act为update：更新后的数据
	 * 如果act为delete：删除前的数据
	 */
	@Column(name = "odata", length = 1024)
	private String operateData;

	/** 操作主体 */
	@Column(name = "sub", length = 32)
	private String operateSubject;

	/** 操作主体主机 */
	@Column(name = "host", length = 15)
	private String operateHost;

	/** 操作时间 */
	@Column(name = "ts", length = 13)
	private Long operateTimestamp;

}
